tar xvf ${DOWNLOADDIR}/libtool-2.5.4.tar.xz -C ${BUILDDIR}
pushd ${BUILDDIR}/libtool-2.5.4
	./configure --prefix=/usr --libdir=/usr/lib64 --build=${CROSS_HOST} --host=${CROSS_TARGET}
	make ${JOBS}
	make DESTDIR=${SYSDIR}/sysroot install
popd
sed -i -e "s@${SYSDIR}/cross-tools/loongarch64-unknown-linux-gnu@/usr@g" \
       -e "s@${SYSDIR}/cross-tools/lib/gcc@/usr/lib64/gcc@g" \
       -e "s@${SYSDIR}/cross-tools/bin@/usr/bin@g" \
       -e "s@${SYSDIR}/sysroot/lib@/usr/lib@g" \
       -e "s@${SYSDIR}/sysroot/usr@/usr@g" \
       -e "s@loongarch64-unknown-linux-gnu-@@g" \
       ${SYSDIR}/sysroot/usr/bin/libtool
